package com.sl.carcode;

import android.widget.Toast;


import com.alibaba.baichuan.android.trade.callback.AlibcTradeCallback;
import com.alibaba.baichuan.trade.biz.context.AlibcTradeContext;
import com.alibaba.baichuan.trade.biz.context.AlibcTradeResult;
import com.sl.carcode.global.MyApplication;


/**
 * Created by fenghaoxiu on 16/8/23.
 */
public class DemoTradeCallback implements  AlibcTradeCallback {


    @Override
    public void onTradeSuccess(AlibcTradeResult alibcTradeResult) {

    }

    @Override
    public void onFailure(int errCode, String errMsg) {
        Toast.makeText(MyApplication.getContext(), "电商SDK出错,错误码=" + errCode + " / 错误消息=" + errMsg, Toast.LENGTH_SHORT).show();
    }


}

